import requests

# re = requests.get(url="https://cdn4.buysellads.net/uu/1/23814/1542656925-explore-themes-1.jpg")
#
# with open("img.jpg", "wb") as f:
#     f.write(re.content)


data = {"k1": "v1", "k2": "v2"}

header = {"user-agent": "demo/v1"}

response = requests.get(url="http://httpbin.org/ip", params=data, headers=header)

print(response.url)

print(response.headers)

print(response.request.headers)
